<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"github.com","root":"/","scheme":"Gemini","version":"7.7.1","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="说到为什么写这个表格,因为python需要数据库,编程需要数据库,web需要数据库,需要数据库的地方很多.而数据库到需要表格来存储数据--存储数据的方式可以说是一张又一张的表.">
<meta property="og:type" content="article">
<meta property="og:title" content="今天用markdown语法来写表格">
<meta property="og:url" content="https://github.com/13850554413/13850554413.github.io/2020/02/21/markdown%E8%AF%AD%E6%B3%95/index.html">
<meta property="og:site_name" content="天上人间">
<meta property="og:description" content="说到为什么写这个表格,因为python需要数据库,编程需要数据库,web需要数据库,需要数据库的地方很多.而数据库到需要表格来存储数据--存储数据的方式可以说是一张又一张的表.">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="http://dingyue.ws.126.net/sIUFLqPmnMHp88DqM1WMfTHdTFRVsrNx96O007LN11kNY1534396611877compressflag.jpg">
<meta property="article:published_time" content="2020-02-21T14:58:00.000Z">
<meta property="article:modified_time" content="2020-02-21T16:12:31.027Z">
<meta property="article:author" content="小灰灰">
<meta property="article:tag" content="linux">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http://dingyue.ws.126.net/sIUFLqPmnMHp88DqM1WMfTHdTFRVsrNx96O007LN11kNY1534396611877compressflag.jpg">

<link rel="canonical" href="https://github.com/13850554413/13850554413.github.io/2020/02/21/markdown%E8%AF%AD%E6%B3%95/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome: false,
    isPost: true
  };
</script>

  <title>今天用markdown语法来写表格 | 天上人间</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <div>
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">天上人间</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
        <p class="site-subtitle">个人博客| 学习交流| 日志心态</p>
  </div>

  <div class="site-nav-right"></div>
</div>


<nav class="site-nav">
  
  <ul id="menu" class="menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-fw fa-home"></i>首页</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>归档</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-fw fa-tags"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-fw fa-th"></i>分类</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-fw fa-user"></i>关于</a>

  </li>
  </ul>

</nav>
</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content">
            

  <div class="posts-expand">
      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block " lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://github.com/13850554413/13850554413.github.io/2020/02/21/markdown%E8%AF%AD%E6%B3%95/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="小灰灰">
      <meta itemprop="description" content="我的博客用于记录">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="天上人间">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          今天用markdown语法来写表格
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2020-02-21 22:58:00" itemprop="dateCreated datePublished" datetime="2020-02-21T22:58:00+08:00">2020-02-21</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="fa fa-calendar-check-o"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2020-02-22 00:12:31" itemprop="dateModified" datetime="2020-02-22T00:12:31+08:00">2020-02-22</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/%E6%97%A5%E5%BF%97/" itemprop="url" rel="index">
                    <span itemprop="name">日志</span>
                  </a>
                </span>
            </span>

          
            <div class="post-description">说到为什么写这个表格,因为python需要数据库,编程需要数据库,web需要数据库,需要数据库的地方很多.而数据库到需要表格来存储数据--存储数据的方式可以说是一张又一张的表.</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h2 id="md语法表格系列"><a href="#md语法表格系列" class="headerlink" title="md语法表格系列"></a>md语法表格系列</h2><p>说到为什么写这个表格,因为python需要数据库,编程需要数据库,web需要数据库,需要数<br>据库的地方很多.而数据库到需要表格来存储数据–存储数据的方式可以说是一张又一张<br>的表.最经常的例子就是学生表.</p>
<p><strong>学生年级表</strong></p>
<table>
<thead>
<tr>
<th align="left">id</th>
<th align="center">年级</th>
</tr>
</thead>
<tbody><tr>
<td align="left">01</td>
<td align="center">一年级</td>
</tr>
<tr>
<td align="left">02</td>
<td align="center">二年级</td>
</tr>
<tr>
<td align="left">03</td>
<td align="center">三年级</td>
</tr>
</tbody></table>
<p><strong>学生班级表</strong></p>
<table>
<thead>
<tr>
<th align="left">id</th>
<th align="center">年级</th>
<th align="center">班级</th>
<th align="center">班主任</th>
</tr>
</thead>
<tbody><tr>
<td align="left">010</td>
<td align="center">一年级</td>
<td align="center">1班</td>
<td align="center">王老师</td>
</tr>
<tr>
<td align="left">011</td>
<td align="center">一年级</td>
<td align="center">2班</td>
<td align="center">李老师</td>
</tr>
<tr>
<td align="left">012</td>
<td align="center">一年级</td>
<td align="center">3班</td>
<td align="center">王老师</td>
</tr>
<tr>
<td align="left">013</td>
<td align="center">二年级</td>
<td align="center">1班</td>
<td align="center">赵老师</td>
</tr>
<tr>
<td align="left">014</td>
<td align="center">二年级</td>
<td align="center">2班</td>
<td align="center">关老师</td>
</tr>
<tr>
<td align="left">015</td>
<td align="center">二年级</td>
<td align="center">3班</td>
<td align="center">张老师</td>
</tr>
<tr>
<td align="left">016</td>
<td align="center">三年级</td>
<td align="center">1班</td>
<td align="center">张老师</td>
</tr>
<tr>
<td align="left">017</td>
<td align="center">三年级</td>
<td align="center">2班</td>
<td align="center">李老师</td>
</tr>
<tr>
<td align="left">018</td>
<td align="center">三年级</td>
<td align="center">3班</td>
<td align="center">胡老师</td>
</tr>
</tbody></table>
<p><del><strong><em>插入一张图</em></strong></del></p>
<p><img src="http://dingyue.ws.126.net/sIUFLqPmnMHp88DqM1WMfTHdTFRVsrNx96O007LN11kNY1534396611877compressflag.jpg" alt=""></p>

    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/linux/" rel="tag"># linux</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2018/11/11/linux%E5%AD%A6%E4%B9%A0%E5%BF%83%E5%BE%97/" rel="prev" title="linux学习心得">
      <i class="fa fa-chevron-left"></i> linux学习心得
    </a></div>
      <div class="post-nav-item"></div>
    </div>
      </footer>
    
  </article>
  
  
  

  </div>


          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let activeClass = CONFIG.comments.activeClass;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#md语法表格系列"><span class="nav-number">1.</span> <span class="nav-text">md语法表格系列</span></a></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">小灰灰</p>
  <div class="site-description" itemprop="description">我的博客用于记录</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">10</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">6</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">10</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/yourname" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;yourname"><i class="fa fa-fw fa-github"></i>GitHub</a>
      </span>
  </div>


  <div class="links-of-blogroll motion-element">
    <div class="links-of-blogroll-title">
      <i class="fa fa-fw fa-link"></i>
      友情链接
    </div>
    <ul class="links-of-blogroll-list">
        <li class="links-of-blogroll-item">
          <a href="http://yoursite.com/" title="http:&#x2F;&#x2F;yoursite.com" rel="noopener" target="_blank">链接1</a>
        </li>
        <li class="links-of-blogroll-item">
          <a href="http://yoursite.com/" title="http:&#x2F;&#x2F;yoursite.com" rel="noopener" target="_blank">链接2</a>
        </li>
    </ul>
  </div>

      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">小灰灰</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> 强力驱动 v4.2.0
  </div>
  <span class="post-meta-divider">|</span>
  <div class="theme-info">主题 – <a href="https://theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Gemini</a> v7.7.1
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>




  















  

  

</body>
</html>
